
<div class="modal-content" style="width: 680px; height: 700px;">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true" ng-click="onClose();">×</button>
		<h4 class="modal-title" id="myModalLabel">
			<span>诚信管理</span>
		</h4>
	</div>
	<div class="modal-body">
		<div class="row">
			<div class="col-xs-12">
				<div class="form-group col-xs-6">
					<h6><label class="col-xs-4 text-right">记分规则&nbsp;&nbsp;</label></h6>
					<div class="col-xs-8">
						&nbsp;
					</div>
				</div>
				<div class="form-group col-xs-6">
					&nbsp;
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-12">
				<div class="form-group col-xs-6">
					<label class="col-xs-4 text-right"><span ng-bind="nameTemp"></span>:</label>
					<div class="col-xs-8">
						<span ng-bind="warningData.name"></span>
					</div>
				</div>
				<div class="form-group col-xs-6">
					<label class="col-xs-4 text-right"><span ng-bind="codeTemp"></span>:</label>
					<div class="col-xs-8">
						<span ng-bind="warningData.code"></span>
					</div>
				</div>
			</div>
			<!-- <div class="col-xs-12">
				<div class="form-group col-xs-6">
					<label class="col-xs-4 text-right">姓名:</label>
					<div class="col-xs-8">
						<span ng-bind="warningData.name"></span>
					</div>
				</div>
				<div class="form-group col-xs-6">
					<label class="col-xs-4 text-right">人员编码:</label>
					<div class="col-xs-8">
						<span ng-bind="warningData.code"></span>
					</div>
				</div>
			</div> -->
			<div class="col-xs-12">
				<div class="form-group col-xs-6">
					<label class="col-xs-4 control-label text-right"><span class="red">*&nbsp;</span>评分类别:</label>
					<div class="col-xs-8" ng-click="onAssessmentContentClick(data);">
						<select ui-select2="{allowClear:true}" ng-model="deducitonForm.idStandardscore" class="full-width">
							<option value=""></option>
							<option ng-repeat="data in ratingCategorys"
										value="{{data.idStandardscore}}">{{data.scoreName}}</option>
						</select>
					</div>
				</div>
			</div>
			<div class="col-xs-12">
				<div class="form-group col-xs-6">
					<label class="col-xs-4 text-right"><span class="red">*&nbsp;</span>考核内容:</label>
					<div class="col-xs-8">
						<div class="panel panel-default full-height full-overflow-y" style="height:240px;">
							<div class="list-group full-height scrollTableBodydiv">
								<a class="list-group-item" ng-class="{active:data.selected}"
									ng-repeat="data in assessmentContents | filter : searchFilter" 
									ng-bind="data.scoreName" ng-click="onAssessmentRulesItemClick(data)"></a>
							</div>
						</div>
					</div>
				</div>
				<div ng-show="isFlat">
					<div class="form-group col-xs-6">
						<label class="col-xs-4 text-right"><span class="red">*&nbsp;</span>考核细则:</label>
						<div class="col-xs-8">
							<div class="panel panel-default full-height full-overflow-y" style="height:240px;">
								<div class="list-group full-height scrollTableBodydiv">
									<a class="list-group-item" ng-class="{active:data.selected}"
										ng-repeat="data in assessmentRules | filter : searchFilter" 
										ng-bind="data.scoreName" ng-click="onItemClick(data)"></a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-xs-12" ng-show="isFlat">
					<div class="form-group col-xs-6">
						<label class="col-xs-4 text-right">参考分值:</label>
						<div class="col-xs-8">
							<span ng-bind="referenceScores"></span>
						</div>
					</div>
					<div class="form-group col-xs-6">
						<label class="col-xs-4 control-label text-right"><span class="red">*&nbsp;</span>初始记分:</label>
						<div class="col-xs-8">
							<div ng-show="isDisabled">
								<input type="text" class="full-width" ng-model="deducitonForm.pointReal"/>
							</div>
							<div ng-show="!isDisabled">
								<input type="text" class="full-width" ng-model="deducitonForm.pointReal" disabled/>
							</div>
						</div>
					</div>
			</div>	
			<div class="col-xs-12" ng-show="isFlat">
					<div class="form-group col-xs-6">
						<label class="col-xs-4 text-right">记分分值: </label>
						<div class="col-xs-8">
							<span ng-bind="deduScores"></span> 
						</div>
					</div>
					<div class="form-group col-xs-6">
						<label class="col-xs-4 text-right">剩余分值:</label>
						<div class="col-xs-8">
							<span ng-bind="deductionScores"></span>
						</div>
					</div>
			</div>	
			<div class="col-xs-12" ng-show="!isFlat">
					<div class="form-group col-xs-6">
						<label class="col-xs-4 text-right">记分分值: </label>
						<div class="col-xs-8">
							<span ng-bind="deduScores"></span> 
						</div>
					</div>
					<div class="form-group col-xs-6">
						<label class="col-xs-4 text-right">年度累计分值:</label>
						<div class="col-xs-8">
							<span ng-bind="deductionScores"></span>
						</div>
					</div>
			</div>	
			<div class="col-xs-12">
					<div class="form-group col-xs-6">
						&nbsp;
					</div>
					<div class="form-group col-xs-6">
						<label class="col-xs-4 text-right">&nbsp;</label>
						<div class="col-xs-8">
							<button type="button" class="btn btn-primary btn-sm" ng-click="marking();">记分</button>
						</div>
					</div>
			</div>			
    	</div>
    	<div class="row full-height">
	    	<div class="" style="max-height:120px; overflow:auto;margin-left: 8px;margin-right: 8px;">
			<table class="table fwa-table table-bordered">
						<thead>
							<tr>
								<th width="12%">记分分值</th>
								<th width="40%">评分类别</th>
								<th ng-show="isFlat" width="40%">考核细则</th>
								<th ng-show="!isFlat" width="40%">考核内容</th>
								<th width="8%">操作</th>
							</tr>
						</thead>
						<tbody>
						 <!-- ng-class="{'info':true}" -->
							<tr ng-repeat="data in tableDataDeductions">
								<td>
									<div class="text-center" title="{{data.point}}">
										<span ng-bind="data.point"></span>
									</div>
								</td>
								<td>
									<div title="{{data.ratingCategory}}" ng-bind="data.ratingCategory"></div>
								</td>
								<td ng-show="isFlat">
									<div title="{{data.assessmentRules}}" ng-bind="data.assessmentRules"></div>
								</td>
								<td ng-show="!isFlat">
									<div title="{{data.assessmentContent}}" ng-bind="data.assessmentContent"></div>
								</td>
								<td>
									<div class="text-center"><a ng-click="deleteDeduction(data.ruleId,data.idPointCut);"><span>删除</span></a></div>
								</td>
							</tr>
						</tbody>
				</table>
			</div>
		</div>
	</div>
	<div class="modal-footer">
	<div class="col-xs text-center">
		<button type="button" class="btn btn-primary btn-sm" ng-click="confirm();">保存</button>
		<button type="button" class="btn btn-primary btn-sm" ng-click="onClose();" >取消</button>
	</div>
</div>
</div>